https://glot.io/snippets/gfastxghbs/raw/main.lua